package cn.com.guage.dtm.stat.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.com.guage.dtm.stat.mapper.StatDataExploreMapper;
import cn.com.guage.dtm.stat.domain.StatDataExplore;
import cn.com.guage.dtm.stat.service.IStatDataExploreService;
import cn.com.guage.dtm.common.core.text.Convert;

/**
 * 数据探索Service业务层处理
 * 
 * @author yangdechao
 * @date 2021-06-22
 */
@Service
public class StatDataExploreServiceImpl implements IStatDataExploreService 
{
    @Autowired
    private StatDataExploreMapper statDataExploreMapper;

    /**
     * 查询数据探索
     * 
     * @param exploreId 数据探索ID
     * @return 数据探索
     */
    @Override
    public StatDataExplore selectStatDataExploreById(Long exploreId)
    {
        return statDataExploreMapper.selectStatDataExploreById(exploreId);
    }

    /**
     * 查询数据探索列表
     * 
     * @param statDataExplore 数据探索
     * @return 数据探索
     */
    @Override
    public List<StatDataExplore> selectStatDataExploreList(StatDataExplore statDataExplore)
    {
        return statDataExploreMapper.selectStatDataExploreList(statDataExplore);
    }

    /**
     * 新增数据探索
     * 
     * @param statDataExplore 数据探索
     * @return 结果
     */
    @Override
    public int insertStatDataExplore(StatDataExplore statDataExplore)
    {
        return statDataExploreMapper.insertStatDataExplore(statDataExplore);
    }

    /**
     * 修改数据探索
     * 
     * @param statDataExplore 数据探索
     * @return 结果
     */
    @Override
    public int updateStatDataExplore(StatDataExplore statDataExplore)
    {
        return statDataExploreMapper.updateStatDataExplore(statDataExplore);
    }

    /**
     * 删除数据探索对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteStatDataExploreByIds(String ids)
    {
        return statDataExploreMapper.deleteStatDataExploreByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除数据探索信息
     * 
     * @param exploreId 数据探索ID
     * @return 结果
     */
    @Override
    public int deleteStatDataExploreById(Long exploreId)
    {
        return statDataExploreMapper.deleteStatDataExploreById(exploreId);
    }
}
